# 初学python练习
# 姓 名：张宇
# 开发时间：2024/07/26 18:35
import requests

url = "https://www.22shuquge.net/b/568/568620/142488950.html"
#小说
url1 = "https://www.22shuquge.net/b/568/568620/"
#豆瓣
url2 = "https://www.douban.com/"
#百度 被屏蔽
url3 = "https://www.baidu.com"
# 京东
url4 = "https://www.jd.com/?cu=true&utm_source=baidu-pinzhuan&utm_medium=cpc&utm_campaign=t_288551095_baidupinzhuan&utm_term=0f3d30c8dba7459bb52f2eb5eba8ac7d_0_2682d708908f48da92aa56426e2100e9"

url = url
resp = requests.get(url)
resp.encoding = "utf-8"

with open("douban.html", mode="w",encoding="utf-8") as f:
    f.write(resp.text)
print("ok")


###链接地址
# https://www.22shuquge.net/b/568/568620/142488950.html
# https://www.22shuquge.net/b/568/568620/142488950_2.html
# https://www.22shuquge.net/b/568/568620/142488980.html
